/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package observerapplication;

/**
 *
 * @author Ramon
 */
public class Client {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Magatzem carrefour = new Magatzem();
        Observer observer = new Proveidor();
        Observer ob = new Proveidor2();
        carrefour.add(observer);
        carrefour.add(ob);

        Magatzem2 llobet = new Magatzem2();
       
//      llobet.add(ob);
        
        

//        llobet.decrementaStock();
//        llobet.decrementaStock();
        
        carrefour.decrementaStock();
        carrefour.decrementaStock();
        carrefour.decrementaStock();
        carrefour.decrementaStock();
        carrefour.decrementaStock();
        carrefour.decrementaStock();


        


    }

}
